how to find the endpoint given a midpoint and one other endpoint